package com.sdap2.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.sdap2.entity.CameraData;
import java.time.LocalDateTime;

public interface CameraService {
    String capture(String deviceSerial, String token);
    
    Page<CameraData> getHistory(String deviceSerial, Pageable pageable, String token);
    
    Page<CameraData> getHistory(String deviceSerial, LocalDateTime startTime, LocalDateTime endTime, 
                              Pageable pageable, String token);
                              
    CameraData getLatestCapture(String deviceSerial, String token);
} 